/** 
 *   
 * @return Object literal singleton instance of DirectoryListing 
 */
var RssHelper = {
	/** 
	 * @param directory The directory for which we want the listing 
	 * @param successCallback The callback which will be called when directory listing is successful 
	 * @param failureCallback The callback which will be called when directory listing encouters an error 
	 */
	getUrlContent : function(url, index, successCallback, failureCallback) {
		return PhoneGap.exec(
				successCallback, //Success callback from the plugin  
				failureCallback, //Error callback from the plugin  
				'RssHelperPlugin', //Tell PhoneGap to run "RssHelperPlugin" Plugin  
				'get_url_content', //Tell plugin, which action we want to perform  
				[url, index] //Passing list of args to the plugin  
		); 
	},
	openUrlInBrowser : function(url, successCallback, failureCallback) {
		return PhoneGap.exec(
				successCallback, //Success callback from the plugin  
				failureCallback, //Error callback from the plugin  
				'RssHelperPlugin', //Tell PhoneGap to run "RssHelperPlugin" Plugin  
				'open_url_in_browser', //Tell plugin, which action we want to perform  
				[ url ] //Passing list of args to the plugin  
		); 
	},
	toast : function(msg) {
		return PhoneGap.exec(
				function() {}, //Success callback from the plugin  
				function() {}, //Error callback from the plugin  
				'RssHelperPlugin', //Tell PhoneGap to run "RssHelperPlugin" Plugin  
				'toast', //Tell plugin, which action we want to perform  
				[ msg ] //Passing list of args to the plugin  
		); 
	}
};